package com.ht.yml.tools;

import java.util.Map;

/**
 * @author wangmin
 * @discription
 * @created 2024-12-30 10:50
 */
public class TesterForGenerateOtherForSpringCloudConfig {
    public static void main(String[] args) throws Exception {
        Map<String, String> envConfigSource = ApplicationConfigUtils.readPropertyFile("D:\\恒太svn代码\\cloudconfig\\config\\data-center-pro.properties");
        Map<String, Object> envConfigYaml = YamlPropertiesUtils.convertProperties2YmlMap(envConfigSource);

        Map<String, Object> sameConfigYaml = YamlReader.readFile("C:\\Users\\Administrator\\Desktop\\same.txt");

        YamlPropertiesUtils.compare(sameConfigYaml, "same", envConfigYaml, "pro");
    }

}
